#include "qbcisignal.h"

namespace bci {
QBciArmaSignal QBciArmaSignal::channels(const arma::uword &firstChannel,
                                      const arma::uword &lastChannel) const {
  return QBciArmaSignal(d->mat.cols(firstChannel, lastChannel - 1));
}

QBciArmaSignal QBciArmaSignal::data(const arma::uword &firstData,
                                  const arma::uword &lastData) const {
  if (firstData < lastData)
    return QBciArmaSignal(d->mat.rows(firstData, lastData - 1));
  else
    return QBciArmaSignal();
}
} // namespace bci